package com.oceansoft.mobile.common;

import com.oceansoft.mobile.common.util.HttpClientUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhuya
 */
public class PvThread extends Thread  {
    final private static String pvUrl = "http://172.16.1.101:8080/api/PVSB/insertPVSB";
    Map<String, String> paraMap = new HashMap<String, String>();

    public PvThread() {
    }

    public PvThread(Map<String, String> para) {
        this.paraMap = para;
    }

    public void run() {
        System.out.println("PvThread.start()");
        String a = HttpClientUtil.doPost(pvUrl, paraMap, "utf-8");
        System.out.println(a);
        System.out.println("PvThread.end()");
    }
}
